<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    .tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

    </style>
</head>
<body>
    <div class="tab">
        <button class="tablinks" onclick="openTab(event, 'tab1')">Tab 1</button>
        <button class="tablinks" onclick="openTab(event, 'tab2')">Tab 2</button>
        <button class="tablinks" onclick="openTab(event, 'tab3')">Tab 3</button>
      </div>
      
      <div id="tab1" class="tabcontent">
        <h3>Tab 1 Content</h3>
        <ul id="tab1-list"></ul>
        <input type="text" id="tab1-input">
        <button onclick="addTab1()">Add</button>
      </div>
      
      <div id="tab2" class="tabcontent">
        <h3>Tab 2 Content</h3>
        <ul id="tab2-list"></ul>
        <input type="text" id="tab2-input">
        <button onclick="addTab2()">Add</button>
      </div>
      
      <div id="tab3" class="tabcontent">
        <h3>Tab 3 Content</h3>
        <ul id="tab3-list"></ul>
        <input type="text" id="tab3-input">
        <button onclick="addTab3()">Add</button>
      </div>


     <script src="07tab栏chatgpt"></script>
</body>
</html>